package com.wanxi.twoarray;

public class SumTwoArray {
    public static void main(String[] args) {
        int[][] arr = {{11, 22, 33}, {44, 55, 66}};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
//            int[] temp = arr[i];
            for (int j = 0; j < arr[i].length; j++) {
//                System.out.println(temp[j]);
                sum += arr[i][j];
                System.out.println(arr[i][j]);
            }
        }
        System.out.println("二维数组的和为:" + sum);
    }
}
